package com.flyingocean;

public class PlayerInfo {
	public String name;
	public String birthDate;
	public String height;
	public String weight;
	public String number;
	public String position;
	public String college;
	public String city;

	// 比赛数据
	public String season;

	public String tm;

	public String g;

	public String gs;

	public String mp;

	public String fgper;

	public String fg;

	public String fga;

	public String threepper;

	public String threep;

	public String threepa;

	public String ftper;

	public String ft;

	public String fta;

	public String trb;

	public String orb;

	public String drb;

	public String ast;

	public String stl;

	public String blk;

	public String tov;

	public String pf;

	public String pts;

	public String w;

	public String l;

	public String getValueByIndex(int index) {
		if (index == 0) {
			return this.name;
		} else if (index == 1) {
			return this.birthDate;
		} else if (index == 2) {
			return this.height;
		} else if (index == 3) {
			return this.weight;
		} else if (index == 4) {
			return this.number;
		} else if (index == 5) {
			return this.position;
		} else if (index == 6) {
			return this.college;
		} else if (index == 7) {
			return this.city;
		} else if (index == 8) {
			return this.season;
		} else if (index == 9) {
			return this.tm;
		} else if (index == 10) {
			return this.g;
		} else if (index == 11) {
			return this.gs;
		} else if (index == 12) {
			return this.mp;
		} else if (index == 13) {
			return this.fgper;
		} else if (index == 14) {
			return this.fg;
		} else if (index == 15) {
			return this.fga;
		} else if (index == 16) {
			return this.threepper;
		} else if (index == 17) {
			return this.threep;
		} else if (index == 18) {
			return this.threepa;
		} else if (index == 19) {
			return this.ftper;
		} else if (index == 20) {
			return this.ft;
		} else if (index == 21) {
			return this.fta;
		} else if (index == 22) {
			return this.trb;
		} else if (index == 23) {
			return this.orb;
		} else if (index == 24) {
			return this.drb;
		} else if (index == 25) {
			return this.ast;
		} else if (index == 26) {
			return this.stl;
		} else if (index == 27) {
			return this.blk;
		} else if (index == 28) {
			return this.tov;
		} else if (index == 29) {
			return this.pf;
		} else if (index == 30) {
			return this.pts;
		} else if (index == 31) {
			return this.w;
		} else if (index == 32) {
			return this.l;
		} else {
			System.err.println("index越界!");
			return "Error";
		}
	}

	public void setValueByIndex(int index, String newValue) {
		if (index == 0) {
			this.name = newValue;
		} else if (index == 1) {
			this.birthDate = newValue;
		} else if (index == 2) {
			this.height = newValue;
		} else if (index == 3) {
			this.weight = newValue;
		} else if (index == 4) {
			this.number = newValue;
		} else if (index == 5) {
			this.position = newValue;
		} else if (index == 6) {
			this.college = newValue;
		} else if (index == 7) {
			this.city = newValue;
		} else if (index == 8) {
			this.season = newValue;
		} else if (index == 9) {
			this.tm = newValue;
		} else if (index == 10) {
			this.g = newValue;
		} else if (index == 11) {
			this.gs = newValue;
		} else if (index == 12) {
			this.mp = newValue;
		} else if (index == 13) {
			this.fgper = newValue;
		} else if (index == 14) {
			this.fg = newValue;
		} else if (index == 15) {
			this.fga = newValue;
		} else if (index == 16) {
			this.threepper = newValue;
		} else if (index == 17) {
			this.threep = newValue;
		} else if (index == 18) {
			this.threepa = newValue;
		} else if (index == 19) {
			this.ftper = newValue;
		} else if (index == 20) {
			this.ft = newValue;
		} else if (index == 21) {
			this.fta = newValue;
		} else if (index == 22) {
			this.trb = newValue;
		} else if (index == 23) {
			this.orb = newValue;
		} else if (index == 24) {
			this.drb = newValue;
		} else if (index == 25) {
			this.ast = newValue;
		} else if (index == 26) {
			this.stl = newValue;
		} else if (index == 27) {
			this.blk = newValue;
		} else if (index == 28) {
			this.tov = newValue;
		} else if (index == 29) {
			this.pf = newValue;
		} else if (index == 30) {
			this.pts = newValue;
		} else if (index == 31) {
			this.w = newValue;
		} else if (index == 32) {
			this.l = newValue;
		} else {
			System.err.println("index越界!");
		}
	}
}
